import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { PreviewPlayersDataComponent } from './preview-players-data/preview-players-data.component';
import { PlayersRetentionComponent } from './players-retention/players-retention.component';
import { DevicesRetentionComponent } from './devices-retention/devices-retention.component';
import { ActivePlayersLevelComponent } from './active-players-level/active-players-level.component';
import { OnlineTimeDistributionComponent } from './online-time-distribution/online-time-distribution.component';
import { DailyOnlineComparisonComponent } from './daily-online-comparison/daily-online-comparison.component';
import { OnlineNumberComponent } from './online-number/online-number.component';

const routes: Routes = [
  { path: '', redirectTo: 'previewPlayersData', pathMatch: 'full' },
  { path: 'previewPlayersData', component: PreviewPlayersDataComponent },
  { path: 'playersRetention', component: PlayersRetentionComponent },
  { path: 'devicesRetention', component: DevicesRetentionComponent },
  { path: 'activePlayersLevel', component: ActivePlayersLevelComponent },
  {
    path: 'onlineTimeDistribution',
    component: OnlineTimeDistributionComponent
  },
  { path: 'dailyOnlineComparison', component: DailyOnlineComparisonComponent },
  { path: 'onlineNumber', component: OnlineNumberComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PlayersRoutingModule {}
